import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router"


const routes: RouteRecordRaw[] = [
    {
        path: '/main/login',
        name: 'login',
        component: () => import('../views/main/Login.vue'),
        meta: {
            title: '',
            keepAlive: false
        }
    },
    {
        path: '/main/childHome',
        name: 'childHome',
        component: () => import('../views/child/childHome.vue'),
        meta: {
            title: '',
            keepAlive: false
        }
    },
    {
        path: '/main/childJob',
        name: 'childJob',
        component: () => import('../views/child/childJob.vue'),
        meta: {
            title: '',
            keepAlive: false
        }
    },
    {
        path: '/main/childAbout',
        name: 'childAbout',
        component: () => import('../views/child/childAbout.vue'),
        meta: {
            title: '',
            keepAlive: false
        }
    },
    {
        path: '/main/childEnterprise',
        name: 'childEnterprise',
        component: () => import('../views/child/childEnterprise.vue'),
        meta: {
            title: '',
            keepAlive: false
        }
    },
    {
        path: '/main/childDemo',
        name: 'childDemo',
        component: () => import('../views/child/childDemo.vue'),
        meta: {
            title: '',
            keepAlive: false
        }
    },
    // {
    //     path: '/main/childDemo',
    //     name: 'childDemo',
    //     component: () => import('../views/child/childDemo.vue'),
    //     meta: {
    //         title: '',
    //         keepAlive: false
    //     }
    // },
]

export const router = createRouter({
    history: createWebHistory(),
    routes
})